import React,{useState,useEffect} from 'react';
import './_layout.less'
import {getMasterBrandList} from '@/services/index'
const Layout: React.FC = () => {

    const [getMaster, setMaster] = useState<any[]>([])

    useEffect(()=>{
        getMasterBrandList().then(res=>{
            console.log(res.data)
            setMaster(res.data)
        })
    },[])


    return <div>
        {
            getMaster.map((item,index)=>{
                return <dl key={index}>
                    <dt>
                        <img src={item.CoverPhoto} alt=""/>
                    </dt>
                    <dd>
                        {item.Name}
                    </dd>
                </dl>
            })
        }
    </div>
}
export default Layout;